<?php
/**
 * SweetPlurk
 *
 * @package    SweetPlurk
 * @copyright  Copyright (c) 2008-2012 Wabow Information Inc. (http://www.wabow.com)
 * @license    New BSD License
 * @version    $Id$
 */

/**
 * Plurk 類別
 *
 * @package    SweetPlurk
 * @copyright  Copyright (c) 2008-2012 Wabow Information Inc. (http://www.wabow.com)
 * @license    New BSD License
 */
class SweetPlurk_Plurk extends SweetPlurk_Go
{
    /**
     * 建構
     *
     * @param object $plurkData
     */
    public function __construct($plurkData)
    {
        parent::__construct($plurkData);
    }

    /**
     * 新增 Plurk
     *
     * @param string $content
     * @param string $qualifier
     * @param string $lang
     * @return SweetPlurk_Plurk
     */
    public function addResponse($content, $qualifier = 'says', $lang = 'tr_ch')
    {
        $responseData = parent::$_connector->send('/Responses/responseAdd', array(
            'plurk_id' => $this->plurk_id,
            'content' => $content,
            'qualifier' => 'says',
            'lang' => 'tr_ch',
        ));
        return new SweetPlurk_Response($responseData, $this);
    }
}